package com.hotpot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 描述：
 *
 * @author: ruikanwang
 * @date: 2017/11/16 0016 12:27
 * @version: V1.0
 * 注意：本内容仅限于新疆感知科技有限公司内部传阅,禁止外泄以及用于其他的商业目
 * Copyright © 2017-ganinfo. All rights reserved.
 */
@SpringBootApplication
@MapperScan("com.hotpot.*.mapper*")
//开启定时器(不开启则无法启动定时任务)
@EnableScheduling
@EnableAsync
public class HotbootApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(HotbootApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(HotbootApplication.class,args);
    }
}
